<!--
 * @Author: 贺楠 1071780426@qq.com
 * @Date: 2024-07-09 17:41:34
 * @LastEditors: 陈妮娜 969682281@qq.com
 * @LastEditTime: 2024-11-26 16:22:03
 * @FilePath: \newMould_BHZ\src\components\constructionSiteLaboratoryManage\functionSet\index.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <!-- 小弹框 width:500,height:0.3,top:15%  -->
  <!-- 中弹框 width:800,height:0.5,top:10% -->
  <!-- 大弹框 width:1060,height:0.76,top:5% -->
  <div class="Control-1 mechanism_dialogS closure" id="comcn small">
    <el-dialog
      v-loading="loading"
      element-loading-text="拼命加载中"
      element-loading-background="rgba(0, 0, 0, 0.2)"
      element-loading-spinner="el-icon-loading"
      width="800px"
      :title="title"
      v-dialogDrag
      :visible.sync="visible"
      @close="closeDialog"
      :append-to-body="true"
      top="10%"
    >
      <div
        class="dialogBody common commonClassDialog"
        :style="{ height: dialogHeight }"
        style="width: 100%"
      >
        <div class="baseTitle">基本信息</div>

        <div class="baseInfo" style="height: 120px">
          <publicForm
            ref="publicForm"
            lableWidth="100px"
            :formObj="formObj"
            :formData="formData"
            @selectChange="selectChange"
          >
          </publicForm>
        </div>

        <div class="baseTitle">工程信息</div>
        <div class="baseInfo" style="height: 180px">
          <publicForm
            ref="publicForm1"
            lableWidth="100px"
            :formObj="formBcObj"
            :formData="formData"
            @selectChange="selectChange"
            @clickDialog="clickDialog"
          >
          </publicForm>
        </div>
        <!-- <div class="baseTitle">自检信息</div>
        <div class="tableInfod">
          <el-table :data="tableDataInfo" style="width: 100%">
            <el-table-column
              label="序号"
              type="index"
              width="50"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="fPilenumber"
              label="桩号"
              align="center"
              width="70"
            >
              <template slot-scope="scope">
                <div class="inputminute">
                  <el-input
                    :disabled="isEdit"
                    @input="changeText(scope.row, scope.$index)"
                    v-model="scope.row.fPilenumber"
                  ></el-input>
                </div>
              </template>
            </el-table-column>
            <el-table-column
              prop="fPilediameter"
              label="桩径"
              align="center"
              width="60"
            >
              <template slot-scope="scope">
                <div class="inputminute">
                  <el-input
                    :disabled="isEdit"
                    @input="changeText(scope.row, scope.$index)"
                    v-model="scope.row.fPilediameter"
                  ></el-input>
                </div>
              </template>
            </el-table-column>
            <el-table-column
              width="120"
              prop="fDesignpiletopelevation"
              label="设计桩顶标高(m)"
              align="center"
            >
              <template slot-scope="scope">
                <div class="inputminute">
                  <el-input
                    :disabled="isEdit"
                    @input="changeText(scope.row, scope.$index)"
                    v-model="scope.row.fDesignpiletopelevation"
                  ></el-input>
                </div>
              </template>
            </el-table-column>
            <el-table-column
              width="120"
              prop="fActualpiletopelevation"
              label="实测桩顶标高(m)"
              align="center"
            >
              <template slot-scope="scope">
                <div class="inputminute">
                  <el-input
                    :disabled="isEdit"
                    @input="changeText(scope.row, scope.$index)"
                    v-model="scope.row.fActualpiletopelevation"
                  ></el-input>
                </div>
              </template>
            </el-table-column>
            <el-table-column
              prop="fPipetopelevation"
              width="90"
              label="管顶标高(m)"
              align="center"
            >
              <template slot-scope="scope">
                <div class="inputminute">
                  <el-input
                    :disabled="isEdit"
                    @input="changeText(scope.row, scope.$index)"
                    v-model="scope.row.fPipetopelevation"
                  ></el-input>
                </div>
              </template>
            </el-table-column>
            <el-table-column
              prop="fDesignpilebottomelevation"
              label="设计桩底标高(m)"
              width="120"
              align="center"
            >
              <template slot-scope="scope">
                <div class="inputminute">
                  <el-input
                    :disabled="isEdit"
                    @input="changeText(scope.row, scope.$index)"
                    v-model="scope.row.fDesignpilebottomelevation"
                  ></el-input>
                </div>
              </template>
            </el-table-column>
            <el-table-column
              prop="fDesignpilelength"
              label="设计桩长(m)"
              width="90"
              align="center"
            >
              <template slot-scope="scope">
                <div class="inputminute">
                  <el-input
                    :disabled="isEdit"
                    @input="changeText(scope.row, scope.$index)"
                    v-model="scope.row.fDesignpilelength"
                  ></el-input>
                </div>
              </template>
            </el-table-column>
            <el-table-column
              prop="fConstructionpilelength"
              label="施工桩长(m)"
              align="center"
              width="90"
            >
              <template slot-scope="scope">
                <div class="inputminute">
                  <el-input
                    :disabled="isEdit"
                    @input="changeText(scope.row, scope.$index)"
                    v-model="scope.row.fConstructionpilelength"
                  ></el-input>
                </div>
              </template>
            </el-table-column>
            <el-table-column
              prop="fConstructiondates"
              width="120"
              label="施工日期"
              align="center"
            >
              <template slot-scope="scope">
                <div class="inputminute">
                  <el-date-picker
                    value-format="yyyy-MM-dd"
                    :disabled="isEdit"
                    v-model="scope.row.fConstructiondates"
                    type="date"
                    size="small"
                    placeholder="选择日期"
                    @change="changeText(scope.row, scope.$index)"
                  >
                  </el-date-picker>
                </div>
              </template>
            </el-table-column>
            <el-table-column
              prop="fIsexception"
              label="有无异常"
              align="center"
            >
              <template slot-scope="scope">
                <div class="inputminute">
                  <el-select
                    :disabled="isEdit"
                    v-model="scope.row.fIsexception"
                    placeholder="请选择"
                  >
                    <el-option
                      v-for="item in options"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                      @change="changeText(scope.row, scope.$index)"
                    >
                    </el-option>
                  </el-select>
                </div>
              </template>
            </el-table-column>
            <el-table-column
              prop="fIsrandom"
              label="随机抽检"
              align="center"
              width="70"
            >
              <template slot-scope="scope">
                <div class="inputminute">
                  <el-input
                    :disabled="true"
                    v-model="scope.row.fIsrandom"
                  ></el-input>
                </div>
              </template>
            </el-table-column>
            <el-table-column prop="fNote" label="备注" align="center">
              <template slot-scope="scope">
                <div class="inputminute">
                  <el-input
                    :disabled="isEdit"
                    v-model="scope.row.fNote"
                  ></el-input>
                </div>
              </template>
            </el-table-column>
            <el-table-column align="center" width="120">
              <template slot="header">
                <div class="customTable">
                  <el-button
                    type="primary"
                    :disabled="isEdit"
                    icon="el-icon-circle-plus-outline"
                    @click="addUnqualifiedInfo"
                  ></el-button>
                </div>
              </template>
              <template slot-scope="scope">
                <div class="customTable" style="padding-right: 22px">
                  <el-button
                    type="danger"
                    :disabled="isEdit"
                    icon="el-icon-delete"
                    @click="deleteUnqualifiedInfo(scope.$index, scope.row)"
                    circle
                  ></el-button>
                  <el-button
                    type="primary"
                    :disabled="isEdit"
                    icon="el-icon-document-copy"
                    circle
                    @click="copyUnqualifiedInfo(scope.$index, scope.row)"
                  ></el-button>
                </div>
              </template>
            </el-table-column>
          </el-table>
        </div> -->
      </div>
      <div class="newlyAdded_btn" v-if="btnShow">
        <el-button
          :disabled="isLock"
          v-if="continuity"
          type="primary"
          @click="yj_saveForm(0)"
        >
          连续新增
        </el-button>
        <el-button :disabled="isLock" type="primary" @click="yj_saveForm(1)">
          保存
        </el-button>
        <el-button type="warning" @click="visible = false">关闭</el-button>
      </div>
    </el-dialog>
    <custom-dialog
      @refreshList="refreshList"
      :currentRow="WBSRow"
      v-if="WBSShow"
      :dialogVisible="WBSShow"
      @close1="WBSDialog"
      @getWBS="getWBS"
    ></custom-dialog>
  </div>
</template>
<script src="./index.js"></script>
<style lang="less" scoped>
@import "./index.less";
</style>
